package com.april.coupon.model;

import lombok.Data;
import org.springframework.beans.factory.annotation.Value;
import org.springframework.boot.context.properties.ConfigurationProperties;
import org.springframework.cloud.context.config.annotation.RefreshScope;
import org.springframework.context.annotation.Configuration;

/**
 * @Package : com.april.coupon.model
 * @Author : xz
 * @Date : 2023-07-16 22:03
 * @Desc :
 */
@RefreshScope
@Data
@Configuration
@ConfigurationProperties( prefix = "april-coupon")
public class AprilEntity {
    @Value("${coupon.user.name}")
    private String name;
    @Value("${coupon.user.age}")
    private String age;
}
